package com.ceba.test.webservice.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class StampRuleAbstract implements IStampRule {

    /**
     * 印章图片位置
     */
    private String stampImgPath;

    /**
     * 是否数字签名
     */
    private boolean shouldSignature;

    /**
     * 印章有效起始日期
     */
    private String validStartOfSeal;

    /**
     * 印章有效终止日期
     */
    private String validEndOfSeal;

    /**
     * 1 - 多页
     * 2 - 关键字
     * 3 - 所有页
     */
    private Integer type;

    public StampRuleAbstract() {}

    public StampRuleAbstract(String stampImgPath, boolean shouldSignature, int type) {
        this.stampImgPath = stampImgPath;
        this.shouldSignature = shouldSignature;
        this.type = type;
    }

    @Override
    public String getStampImgPath() {
        return stampImgPath;
    }

    @Override
    public void setStampImgPath(String stampImgPath) {
        this.stampImgPath = stampImgPath;
    }

    @Override
    public boolean isShouldSignature() {
        return shouldSignature;
    }

    public void setShouldSignature(boolean shouldSignature) {
        this.shouldSignature = shouldSignature;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getValidStartOfSeal() {
        return validStartOfSeal;
    }

    @Override
    public void setValidStartOfSeal(String validStartOfSeal) {
        this.validStartOfSeal = validStartOfSeal;
    }

    public String getValidEndOfSeal() {
        return validEndOfSeal;
    }

    @Override
    public void setValidEndOfSeal(String validEndOfSeal) {
        this.validEndOfSeal = validEndOfSeal;
    }
}

